import service from "./index";

// 按需导出
// 页数
export function studentpagecount(data) {
    return service({
        url: "/admin/student/page/count",
        method: "get",
        params: data
    })
}


// 列表
export function studentpage(data, page) {
    return service({
        url: "/admin/student/page/" + page,
        method: "get",
        params: data
    })
}

// 选择框
export function classnames(data) {
    return service({
        url: "/admin/class/names",
        method: "get",
        params: data
    })
}

// 增加
export function adminstudent(data) {
    return service({
        url: "/admin/student",
        method: "post",
        data: data
    })
}

// 详情
export function adminstudentid(id) {
    return service({
        url: `/admin/student/ ` + id,
        method: "get",
    })
}

// 修改
export function studentup(data) {
    return service({
        url: `/admin/student`,
        method: "put",
        data: data
    })
}

// 删除
export function studentdel(id) {
    return service({
        url: `/admin/student/` + id,
        method: "DELETE",
    })
}